package io.renren.service.impl;

import io.renren.entity.EvaluateVOEntity;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import io.renren.dao.EvaluateDao;
import io.renren.entity.EvaluateEntity;
import io.renren.service.EvaluateService;

import java.util.List;


@Service("evaluateService")
public class EvaluateServiceImpl extends ServiceImpl<EvaluateDao, EvaluateEntity> implements EvaluateService {

    @Override
    public EvaluateEntity getEvaluate(Integer id){
        EvaluateEntity entity = baseMapper.getEvaluate(id);
        return entity;
    }

    @Override
    public List<EvaluateVOEntity> getDoctorEvaluate(@Param("doctorid") Integer doctorid){
        List<EvaluateVOEntity> list = baseMapper.getDoctorEvaluate(doctorid);
        return list;
    }
}
